Skip to content

Overhaul PCB Rendering with Physically-Based Materials and Realistic Surface Relief - #960

Merged
AnasSarkiz merged 6 commits into
tscircuit:mainfrom
AnasSarkiz:AnasSarkiz/flux-clone
Aug 5, 2026
Merged

Overhaul PCB Rendering with Physically-Based Materials and Realistic Surface Relief#960
AnasSarkiz merged 6 commits into
tscircuit:mainfrom
AnasSarkiz:AnasSarkiz/flux-clone

Conversation

@AnasSarkiz

@AnasSarkiz AnasSarkiz commented Aug 4, 2026

Copy link
Copy Markdown
Member

Flux-grade PCB rendering, now the default

PCB renders now use the Flux-style product presentation in every viewer path: controlled studio lighting, a satin solder-mask response, physical copper/trace relief, and no engineering grid or rendering-mode fallback.

  • Uses geometry-derived masked-copper maps, so an empty board cannot generate false texture artifacts.
  • Keeps the existing solder-mask color map intact while applying material detail only where copper geometry exists.
  • Keeps Appearance state focused: Lighting and an opt-in Dark Background. Transparency is the default for every new viewer session.
  • Removes the unused engineering grid and shadow-receiver path.
  • Sets Storybook stories to fullscreen so the visual review is edge-to-edge.

Interactive review

Open the Keypad preview

Keypad visual comparison

Transparent canvas (default)

Keypad render on a transparent canvas

Dark studio background (optional)

Keypad render with the Flux-style dark studio background

Validation

  • bun test tests/board-relief-textures.test.ts tests/manifold-board-textures-strict-mode.test.tsx
  • bunx tsc --noEmit --pretty false (blocked only by existing canvas color typing errors outside this change)
  • Biome checks on the changed files

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
3d-viewer Ready Ready Preview Aug 5, 2026 8:14am

Request Review

@AnasSarkiz
AnasSarkiz marked this pull request as ready for review August 4, 2026 20:43
@AnasSarkiz AnasSarkiz changed the title Give PCB renders Flux-grade studio realism Make Flux-Grade PCB Renders the Default Experience Aug 4, 2026
@AnasSarkiz AnasSarkiz changed the title Make Flux-Grade PCB Renders the Default Experience Overhaul PCB Rendering with Physically-Based Materials and Realistic Surface Relief Aug 4, 2026
@AnasSarkiz
AnasSarkiz force-pushed the AnasSarkiz/flux-clone branch from 0731c66 to d5ae337 Compare August 5, 2026 07:42

@ShiboSoftwareDev ShiboSoftwareDev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Named params rule violated, other than that lg

@AnasSarkiz
AnasSarkiz merged commit 848b72f into tscircuit:main Aug 5, 2026
5 checks passed
@tscircuitbot

Copy link
Copy Markdown

Thank you for your contribution! 🎉

PR Rating: ⭐⭐⭐
Impact: Major

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants